package com.lovegu.object.middle;

/**
 * @author 老顾
 * @title: Animal
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/21 8:53
 */
public class Animal extends Creature{
    public Animal(String name) {
        System.out.println("Animal带一个参数的构造器，该动物的name为" + name);
    }
    public Animal(String name, int age) {
        this(name);
        System.out.println("Animal带两个参数的构造器，其age为" + age);
    }
}
